package com.szbber.medical.bed.ui.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.fragment.app.Fragment
import com.alibaba.android.arouter.facade.annotation.Route
import com.szbber.commen.base.BaseActivity
import com.szbber.commen.base.BaseFragmentPageAdapter
import com.szbber.commen.base.BaseRoutePath
import com.szbber.medical.bed.R
import com.szbber.medical.bed.ui.fragment.PatientInfoFragment
import com.szbber.medical.bed.ui.fragment.SkillFragment
import kotlinx.android.synthetic.main.activity_home.*
import java.util.ArrayList


@Route(path = BaseRoutePath.bed_home)
class HomeActivity : BaseActivity() {


    private val mFragments: ArrayList<Fragment> = ArrayList()

    override fun initLayout(): Int = R.layout.activity_home
    override fun initView() {

        mFragments.add(PatientInfoFragment.getInstance())
        mFragments.add(SkillFragment.getInstance())

        val adapter = BaseFragmentPageAdapter(supportFragmentManager, mFragments, null)
        mViewPager.adapter = adapter


    }



}